Process and streaming server for encrypting a data stream with bandwidth based variation

ABSTRACT

There is disclosed a process for encrypting a data stream to secure the data stream for single viewing and to protect copyrights of the data stream. Specifically, there is disclosed a process for protecting streaming multimedia, entertainment and communications in an Internet-type transmission. There is further disclosed a streaming server component operably connected with a streaming server that interacts with a client system to affect the inventive process.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a Continuation-in-Part of and claims benefit to U.S. patent application Ser. No. 11/171,866, entitled “Process and Streaming Server for Encrypting a Data Stream,”, filed Jun. 30, 2005, which is in turn is a continuation of and claims benefit to U.S. patent application Ser. No. 10/109,963, entitled “Process and Streaming Server for Encrypting a Data Stream,”, filed Mar. 29, 2002, which is in turn a continuation of and claims benefit to U.S. patent application Ser. No. 09/436,916, entitled “Process and Streaming Server for Encrypting a Data Stream,” filed Nov. 9, 1999, under 35 U.S.C. §120 and 37 C.F.R. §1.53(b), each of which are incorporated herein by reference.

TECHNICAL FIELD OF THE INVENTION

The present invention provides a process for encrypting a data stream to secure the data stream for single viewing and to protect copyrights of the data stream. Specifically, the invention provides a process for protecting streaming multimedia, entertainment, and communications in an Internet-type transmission. The invention further provides a streaming server component operably connected with a streaming server that interacts with a client system to affect the inventive process.

BACKGROUND OF THE INVENTION

The Internet has provided another means for communication whereby data can be streamed from a server to a client. The client is responsible for displaying the streamed data, preferably streamed media, to a user. The server is responsible for delivering the data stream to the client. The Real Networks and Microsoft solutions send the data stream via a UDP (a connectionless Internet protocol) along with another connection between the client and the server that controls the transmission of the streamed data. The control connection element functions to stop buffer overruns and can adjust the transmission of the stream to compensate for bandwidth latencies. One problem with this arrangement, however, is that the data that are streamed to the client from the server are unprotected and available to anyone on the network. Therefore, there is a need in the art to better protect from interception across a wide area network, such as the Internet. Specifically, the need relates to providing an ability to protect the improper interception and ability to copy streaming data across the Internet. At present, there is no protection mechanism in place to protect copyrighted data.

Once the data has been released by the server and either received by the user or intercepted before being received by the user, there is no way to restrict the re-transmission of such data once it has been released over a network. Even if the data stream has been copyrighted, there is no means to protect or enforce copyright protection of streamed data. The entity owning the copyright and streaming such content realize that there is no control over what is done with such content after it is released. Therefore, there is a need in the art to provide a means for protecting copyrights in content once streamed over a network. The present invention was designed to address both needs.

Currently, no streaming media solution actually encrypts the data that is being sent from the server to the client. One solution can accomplish this with existing technology, such as by merging SSL secure HTTP sockets with a streaming software package, such as Quicktime. Unfortunately, Quicktime does not have a full screen view option. Therefore, there is a need in the art to develop a better method for streaming video data.

SUMMARY OF THE INVENTION

The present invention provides a process for encrypting a data stream to secure the data stream to enable only single viewing, comprising:

(a) providing a client selection for a streaming data transmission

(b) opening a connection to a streaming server and sending URI, token and user information to the streaming server, wherein the streaming server comprises a client data connection module to send data packets to a client, an encryption module to use encryption keys negotiated with the client to encrypt the data stream and operably connected to the client data connection module, and a flow control module for controlling the rate of data stream flow to maintain a full client buffer, while modifying a quality of the data within the data stream based on a determined bandwidth between the streaming server and the client;

(c) approving or disapproving a valid or invalid, respectively, URI and token combination on a transaction server, wherein the transaction server comprises a client interaction module for connecting a user to the transaction server component, a user verification module having a user database wherein the user verification module is operably linked to the client interaction module and checking for a valid user, and a URI and token creation module operably linked to the user verification module for creating new URIs and tokens in response to user requests; and

(d) providing a continuously encrypted data stream to the client if a valid URI and token combination was found.

Preferably, the streaming server component further comprises a read buffer module operable connected with the flow control module for reading in data from a source footage on storage medium. Preferably, the streaming server component further comprises a user interface module operably connected to the file system module or flow control module for setting server options. Preferably, the streaming server further comprises client server component comprising a data stream control protocol module to create an initial connection to the streaming server component, a decryption module to decrypt the incoming data stream, an input buffer module to buffer incoming data streams, and a display control module to control the display of streaming data. Most preferably, the client server component further comprises a display module to display audio and video data.

Preferably, the providing the continuously encrypted data stream step (d) further comprises a user interface module in the streaming server to allow for pausing, stopping, playing or restarting the data stream. Preferably, the transaction server is implemented with ASP scripts for encryption.

The present invention further comprises a streaming server for encrypting a data stream to secure the data stream to enable only single viewing, comprising:

(a) a streaming server component, wherein the streaming server component comprises a client data connection module to send data packets to a client; and encryption module to use encryption keys negotiated with the client to encrypt the data stream and operably connected to the client data connection module, and a flow control module for controlling the rate of data stream flow to maintain a full client buffer and further modifying a compression quality of the data within the data stream based on a determined bandwidth; and

(b) a transaction server component, wherein the transaction server component comprises a client interaction module for connecting a user to the transaction server component, a user verification module having a user database wherein the user verification module is operably linked to the client interaction module and checking for a valid user, and a URI and token creation module operably linked to the user verification module for creating new URIs and tokens in response to user requests.

Preferably, the streaming server component further comprises a read buffer module operable connected with the flow control module for reading in data from a source footage on storage medium. Preferably, the streaming server component further comprises a user interface module operably connected to the file system module or flow control module for setting server options. Preferably, the streaming server further comprises a client server component comprising a data stream control protocol module to create an initial connection to the streaming server component, a decryption module to decrypt the incoming data stream, an input buffer module to buffer incoming data streams, and a display control module to control the display of streaming data. Most preferably, the client server component further comprises a display module to display audio and video data.

Moreover, the streaming of the data may be performed using a variety of mechanisms. Thus, in one embodiment, the streaming may employ a progressive download streaming, or fast start approach, that enables a received portion of the data to be played while other portions of the data are still being streamed. However, other mechanisms may also be employed, including, but not limited to real-time streaming, broadcasting, PHP Hypertext pre-preprocessing streaming, or the like.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a schematic of the client component enabled to receive and view an encrypted data stream. The client component contains a token storage module 100, a stream control protocol module 120, and a decryption module 160.

FIG. 2 shows a schematic of the streaming server component having an encryption module 220 and a client control connection module for key negotiation and token verification 200.

FIG. 3 shows a schematic of the transaction server components having a token creation module 330 and a user verification module 310.

FIG. 4 shows a schematic of various client scenarios showing the need for a token in order to unlock (decrypt) a data stream for viewing.

FIG. 5 shows a schematic of the process for the streaming server showing the receipt of a client token triggering a negotiation of encryption keys to allow viewing and receipt of a data stream.

FIG. 6 shows a schematic of the transaction server process providing for setting up of client accounts and token creation.

DETAILED DESCRIPTION OF THE INVENTION

The present invention provides a process to encrypt a data stream, such as multimedia entertainment and communications, via the Internet. The encrypted data stream will allow for copyrighted materials and multimedia communications (e.g., analyst meetings) on a secure, pay-per-view basis. The data stream cannot be stored on a client machine for future play-back, or retransmitted. A client, however, can view a data stream as many times as desired within a specified time frame.

A preferred encryption protocol provides, for example, an encryption algorithm of a 192-bit key (e.g., Triple DES), a UDP packet protocol, a RTSP (rfc 2326) packet transmission protocol, an RTP (rfc 1889) packet transmission control protocol, and MPEG1 video storage compression. However, the foregoing example of a preferred encryption protocol will change as such techniques improve with time.

One advantage of the inventive process, using the inventive streaming server and transaction server, is that the client does not really need to possess fully optimized equipment. Only one client will run on any one machine at any one time. The client will need to playback, for example, 30 fps 320×240 video and audio back with no jitter. This will require a stream of about 250˜300 kpa, a large data buffer (of at least several megabytes), and a 350 MHz Pentium II processor or greater running Windows 98 or Windows NT.

The server, for example, can be a fully optimized, multi-threaded (thread pool) Windows NT service. Unlike an HTTP server, this allows sessions with clients to be cached and the server will need to maintain state in respects to all clients.

DEFINITIONS

The following terms shall be used with the meanings defined herein.

Client shall mean the computer that the data is being sent to.

User shall mean the person executing instructions on the client.

Module shall mean a collection of compiled code designed to perform a specific function.

URI shall mean universal resource identifier, that is, the location on the server of the stream.

Token shall mean a binary piece of information that describes the permissions the user has for a specific stream.

In a preferred embodiment of the inventive process and streaming server, the video will be stored unencrypted on the server machines; the files will only be retrievable through the server software. The inventive server will be responsible for (1) negotiating a set of encryption keys; and (2) encrypting the video data “on the fly” thereby making the data packets that are actually going over the wire useless to any computer other than the intended machine. A preferred encryption standard is TRIPLE-DES with a 168-bit key. This form of encryption is not currently exportable outside of the US and Canada and is extremely secure. The server will use UDP for transmission of the data. This protocol uses considerably less network resources than other TCP protocols (http for example).

Client software will be responsible for decrypting the video data and playback. The encryption keys used will be different every time a movie is accessed. Every time the client is executed, a different encryption key is created so the client cannot play back earlier streams if they were somehow saved to disk.

Flow Charts

With regard to FIG. 1, this shows a schematic of the client component of the inventive process and streaming server enabled to receive and view an encrypted data stream. The client keeps a list of all current streams and the corresponding tokens. This information is stored on the token storage module 100. This list will consist of the following three items: (1) the URI, (2) the token for that URI, and (3) the expiration date given by the server. It is not desirable for the client to have any way of determining if the token is valid or not. Because of this, and the need to remove out of date tokens, the server returns the expiration date. This information is used by the client to display information. The expiration date itself never sent back to the server and the server verifies that the token passed is valid. Examples of module devices that can be used as token storage modules include, for example, Random Access Memory, secondary storage (hard disk), and embedded with software providing for token storage inventory and tracking of expiration dates.

The client communicates with a user interface 110. The client will have a standard user interface that will give the appropriate user experience. The interface will have the ability to look through current valid streams or to connect to the server to search for other streams that could be viewed. The client user interface 110 communicates with a local display control module 130 and a stream control protocol module 120. The client has to be able to setup a communications session with the server as well as control the flow of data from the server once the stream is being viewed. The stream control protocol module 120 creates the initial connection by connecting to the server, passing the requested URI, Token, and user information. The stream control protocol module 120 then negotiates a set of encryption keys and controls the flow of data from the server. Examples of stream control protocol module devices 120 within a client component that can be used to negotiate a set of encryption keys and control the flow of data from a server include, for example, Random Access Memory and the network interface card or modem. The software that will be uploaded into this module will monitor the rate of the data being received by sending network statistics to the streaming server. In one embodiment, the monitored rate of the data enables a bandwidth between the client and the streaming server to be determined. The display control module 130 controls the display of the data, and has the ability to pause, stop, or re-start the video stream. Examples of display control modules suitable for use within the client component include, Random Access Memory and the video card. The software running in this module will convert the data being sent form the server into a format that can be displayed to the user.

The display module 140 displays video and audio data. The input buffer module 150 is a module that contains the stream buffer. The stream buffer contains a circular buffer of decrypted data that the display control modules read from and the decryption module writes to. Examples of stream buffer module devices that can be used to contain a circular buffer of decrypted data include, for example, Random Access Memory. As packets are being received from the server, before the data is put into the input buffer, the data within the transport packet is decrypted by a decryption module 160 using the keys negotiated by the stream control protocol module 120. A decryption module is available commercially, for example, SSL, DES, and RSA are available and suitable for use as a decryption module. Lastly on the client component sides is a data stream receive module 170. This module handles the reception of the data packets sent by the server.

Appropriate module devices that can be used as a data stream receive module within the client component includes, for example, Random Access Memory. The software contained in this module will save the data being received by the client in a format that can be used by subsequent modules.

With regard to FIG. 2, the client control connection module 200 will handle control communications between the client and the server. The client and server will negotiate a set of encryption keys. The client will send user information, the URI, and the token to the streaming server via the client control connection module 200. From this module 200, the data that is streamed to the client can be controlled (that is, paused, stopped, or restarted). Hardware devices suitable for use as a client control connection module within the streaming server include Random Access Memory. Such hardware components allow for the execution of hardware non-specific operations. Such software is either embedded in the client control connection module or uploaded therein. The software functions to create a process wherein the client and server communicate current network conditions and modify the data stream accordingly.

The client data connection module 210 functions to send data packets to the client using a connectionless protocol to reduce server overhead. Hardware devices suitable for use as a client data connection module within the streaming server include Random Access Memory and Network Interface Cards. Such software is either embedded in the client data connection module or uploaded therein. The software functions to create a process wherein the encrypted data is sent via network packets to the client machine.

The encryption module 220 uses the keys negotiated by the client/server to encrypt the data stream as it is being sent to the client. This allows for “on the fly” encryption and the encryption keys will be unique for all client/server connections. This allows the source footage to be stored unencrypted on the server. Hardware devices suitable for use as an encryption module within the streaming server include Random Access Memory and proprietary hardware encryption devices. Such hardware components include software that functions that do the actual encryption of the data. Such software is either embedded in the encryption module or uploaded therein. The software functions to create a process wherein the data being sent to the device is encrypted with the keys originally negotiated with the client and the output data is of a format that can only be read after being decrypted by the client.

The flow control module 230 makes sure that the data stream is being sent to the server at the rate in which the client is using the data. The buffer at the client needs to be full at all times but streaming data must also not be overwritten. Moreover, in one embodiment, encoding or compressing at least a portion of the data within the data stream may be based on a determined bandwidth. Thus, the flow control module communicates with both the encryption module 220 and uses feedback obtained from the client control connection module 200. Hardware devices suitable for use as a flow control module within the streaming server include Random Access Memory. Such software is either embedded in the flow control module or uploaded therein. The software functions to create a process wherein the flow of data from the server to the client is regulated.

The file system read buffer 240 is for server performance. Small amounts of data read in from the file will be stored in memory instead of having a constant open file on the file system. The file system module 250 is responsible for reading in data from the source footage on the storage medium. The file system module communicates with the client control connection module 200 to open URIs and the user interface module 260 to file path configurations. Hardware devices suitable for use as a file system module within the streaming server include Random Access Memory. Such hardware components include software that functions to allow the access to data streams. Such software is either embedded in the file system module or uploaded therein. The software functions to create a process wherein the data stored on the secondary storage device can be loaded into Random Access Memory to be delivered to the encryption module.

The streaming server further provides a simple user interface module 260 for setting server options such as which network port to bind to and the location of source footage. Hardware devices suitable for use as a file system module within the streaming server include Random Access Memory. Such software is either embedded in the file system module or uploaded therein. The software functions to create a process wherein the user of the server software can tell the file system module where to go to find the data streams.

With regard to FIG. 3, the transaction server comprises four module components. To access a video stream, the client must first obtain a transaction token. The transaction token is based on a pay-per-view scheme in which the token will be valid for a certain time period. The time a token is valid for is dependent on what the user selects and what options are available for the selected stream. The user contacts the transaction server, via a client interaction module 300, with the user information and the URI. The transaction server will determine what time options are available for the token and present that to the user. After the user selects the required time limit, the request is passed off to the user verification module 310. Hardware devices suitable for use as a client interaction module within the transaction server include Random Access Memory. Such software is either embedded in the client interaction module or uploaded therein. The software functions to create a process wherein the user information is verified against the database and a valid token is created based upon the options requested by the user.

The user verification module 310 checks for user information passed against a user database to see if the user is valid or not. The user database resides in memory of the user verification module. Hardware devices suitable for use as a user verification module within the transaction server include Random Access Memory. Such software is either embedded in the user verification module or uploaded therein. The software functions to create a process wherein the token passed are verified. The URI creation module 320 and the token creation module 330 are tied together and the token is based upon the request URI. This means that the token is unique to the request URI and cannot be used for any other stream. This information is then passed back to the client via module 300. Hardware devices suitable for use as a URI creation module and token creation module, each located within the transaction server, include NA. Such hardware components include software that functions to Random Access Memory. Such software is either embedded in the URI creation module or token creation module or uploaded therein. The software functions to create a process wherein a valid URI to the media stream the user selected are created.

With regard to FIG. 4, the client 400 executes and the client is loaded with a URI and a token 410. The client either double clicks on the client's icon (no) or it launched by a media server (yes). If the media server launched the client, there will be a request URI and token in the command-line parameters of the client. A display a window (420) lists all the purchased (and current) data (video) streams available to view. The user will be able to select a data stream to view by double clicking on the title of the stream. The screen waits for input from the user (430) and the user selects a data stream or another housekeeping option (440). If a housekeeping option was selected, execute user request (450) and go back to displaying video streams with module 420.

If the user launches a data stream (selects yes from 410) a URI and token is saved in the purchased video streams list so it can be viewed again at a later time 460. A connection to the streaming server is opened and the URI, token and user information is sent to the streaming server 470. The streaming server acknowledges a valid (or invalid) URI and token combination 480. If the token is invalid or has expired, the server will close the connection and the client will go back and display all the data streams that are available to view. If the server acknowledges a valid URI and token combination, the client will start to receive data from the streaming server and display it 490.

If the data stream finishes or the user selects any of the available stream options such as pause, stop, play, or restart 500, the stream will stop and await further user input. If the stream has finished playing 510, the process goes back to the list of available streams 420, or continues displaying the data stream 490 by processing a user request 520 and then going back to displaying the stream 490.

With regard to FIG. 5 and the process run by the streaming server, there is first a connection with the client control module 200, 600 to allow the client to establish a connection with the streaming server. The client will provide the URI, token and user information 610 from user 470. The streaming server determines if the token and URI are valid 620. If the token is invalid or has expired, the connection to the client will be closed with an appropriate error message 630. If token is valid, a set of unique encryption keys will be negotiated with the client 640. A URI will be opened and streaming data will be read into a buffer 650.

The client flow control module 230 provides for the client and streaming server to have a flow control connection established to make sure that the data stream is leaving the streaming server at the same rate it is being used at the client end 660. This addresses bandwidth issues as well as making sure that the client play buffer is not overwritten. Therefore, the client flow control mechanism 660 uses the client flow control module 230 to obtain feedback from the data buffer in the client 710 and control the rate of the data stream to keep the client buffer as full as possible. If the client cannot accept any more data at this time, return to flow control module so indicates 670 to slow down or pause the streaming data. If the client can accept more data 680, the client flow control will first determine if there are more data to stream 680. If there are no more data to stream, the data stream could be completed, and the client connection will be closed 690. If there is more data to be sent, the data waiting in the send buffer will be encrypted 700 and those data in the send buffer will be sent to the client 710.

In one embodiment, a determined bandwidth may also be used to modify a quality of the data within the data stream. For instance, if a network bandwidth is determined to be above a first value, then at least a first portion of the data might be compressed or otherwise encoded at a first compression or encoding level. If the network bandwidth is determined at or below the first value, then the portion of the data might be compressed or otherwise encoded at a second compression or encoding level.

As an example, if the network bandwidth is above the first value, then the data might be encoded at a high definition (HD) level, otherwise, the data might be encoded or compressed at a lower level of quality, such as to a standard definition (SD) level. It should be understood, that multiple bandwidth thresholds may be employed to vary the encoding or compression of portions of the data and thereby modify the quality of the data based on an available bandwidth for streaming of the data. Thus, when the bandwidth varies, the quality of different portions of the data may dynamically vary for a given data stream. Therefore, the quality of different portions of a given data stream may vary over time based changes in a determined bandwidth.

The monitoring for the bandwidth may be performed at one or more of blocks 660, 670, 680, and/or block 700, without departing from the scope of the invention.

The variation of compression/encoding of the data may be implemented using any of a variety of mechanisms. For example, in one embodiment, the compression/encoding of portions of the data may be performed virtually in real-time, such that as a change in bandwidth is detected based on the above, the change in compressing of a next portion may be dynamically varied. However, the invention is not so limited, and other embodiments might include, for example, pre-encoding or pre-compressing the data, for example, in various defined bitrates. Then as the change in bandwidth indicates a change in the compression/encoding of the data, portions of the pre-compressed/encoded content may be retrieved at a place in the stream such that the stream appears seamless to the client, but, changing in compression/encoding.

It should be noted that the invention may employ any of a variety of mechanisms to stream the data to the client at 710, including, but not limited to real-time streaming, PHP streamlining, progressive downloading, any of a variety of pseudo-streaming mechanisms, or the like.

With regard to FIG. 6 at the transaction server, the client first connects to the transaction server, for example through a web page 800. Preferably, the transaction server will be implemented with ASP scripts. The client sends request URI and user information through ASP command-line arguments 810 and the transaction server user verification module 310 will determine the time limits of available tokens and display to user for selection. The transaction server will look up user information 820 in a database in the user verification module 310. Examples of looking up user information are whether or not a user has an account (exists according to the transaction server) 830. If the user does not have an account 840, a transaction will be opened up to create new account page and get information from the user 840. In addition, the transaction server user verification module 310 will determine if the URI that was requested is free of charge 850. If the URI costs money 860, the transaction server user verification module 310 will debit a credit card that is in the user database. This process will create a URI in the URI creation module 320 of the transaction server.

Once a URI is provided and either paid for or provided free, a token will be created 870 in the token creation module 330. The token now created will be linked with the URI and a time limit will be selected 880. Lastly, the viewer will be started on the client machine and sent back to the client along with the URI and the created token. 

1. A client for receiving a data stream for use in a predefined number of viewings, comprising: a control module that is programmed to perform actions comprising: providing a URI that is a location of the data stream on a server, and a token associated with the URI, and a request for the data stream to the server; and if the URI, and token are validated: negotiating an encryption key with the server, receiving the data stream over a network a rate of a flow to maintain a substantially full client buffer and wherein a compression quality of the data stream is dynamically varied based on a determined bandwidth over the network, using the encryption key to decrypt the data stream; and a display module that is configured to control the display of the data stream.
 2. The client of claim 1, wherein the compression quality is varied at least between a high definition (HD) compression and a standard definition (SD) compression quality.
 3. The client of claim 1, wherein at least a portion of computer-readable instructions associated with the control module is uploadable onto the client.
 4. The client of claim 1, wherein if the URI, and token are validated further comprises employing the server to determine if the token has expired.
 5. The client of claim 1, wherein the control module is programmed to perform actions further comprising: sending user information and the request for the data stream to the server; and if the user information is valid, performing additional actions, including: if a fee is associated with the requested data stream, debiting a valid user account, and generating the token.
 6. A server for use in providing a data stream to a client for a predetermined number of viewings, the server comprising: a first component configured to enable a connection to be established with the client; and a second component that is programmed to perform actions comprising: receiving user verification information, a URI that is a location of the data stream on a server, and a token associated with the URI with a request for the data stream from the client; determining the validity of the user verification information, the URI, and the token, wherein the token is validated based, in part, on an expiration date; and if the user verification information, URI, and token are valid, negotiating an encryption key with the client, using the encryption key to encrypt the data stream as it is streamed to the client, and controlling over a network a rate of a flow of the encrypted data stream to the client to maintain a substantially full client buffer, and further modifying a quality of the data within the data stream based on a determined bandwidth.
 7. The server of claim 6, wherein the predetermined number of viewings is a single viewing.
 8. The server of claim 6, wherein controlling over the network the rate of the flow further comprises transmitting the encrypted data stream to the client at substantially the same rate as the encrypted data stream is received by the client.
 9. The server of claim 6, wherein controlling over the network the rate of the flow further comprises receiving a network statistic from the client.
 10. The server of claim 6, wherein modifying a quality of the data within the data stream further comprises selecting different portions of data that from a plurality of data streams, each data stream within the plurality being pre-compressed at a different compression bitrate.
 11. A non-transitory computer-readable storage medium having data and instructions stored thereon for use in streaming data from a server to a client, the data and instructions when executed by a computing device perform actions, comprising: receiving a URI that is a location of the data stream on the server, and a token associated with the URI with a request for the data stream from the client; and if the URI and the token are valid, enabling the server to perform actions, including: negotiating an encryption key with the client, providing an encrypted data stream to the client, wherein the data stream is encrypted with the negotiated encryption key; and controlling a rate of a flow of the encrypted data stream to the client over a network to maintain a substantially full client buffer while dynamically adapting a compression quality of data within the data stream based on a determined bandwidth.
 12. The non-transitory computer-readable storage medium of claim 11, wherein the token enables a single viewing of the data stream.
 13. The non-transitory computer-readable storage medium of claim 11, wherein dynamically adapting a compression quality of the data comprises selecting different portions of pre-compressed data streams.
 14. The non-transitory computer-readable storage medium of claim 11, wherein dynamically adapting a compression quality of the data comprises varying the compression quality of different portions of the data stream virtually in real-time as the data is streamed to the client.
 15. The non-transitory computer-readable storage medium of claim 11, wherein controlling the rate of flow further comprises transmitting the encrypted data stream to the client at substantially the same rate as the encrypted data stream is received by the client.
 16. The non-transitory computer-readable storage medium of claim 11, wherein dynamically adapting the compression quality further comprises: if the determined bandwidth is above a first value, compressing at least a portion of the data in the data stream at a high definition (HD) rate; and if the determined bandwidth is at or below the first value, compressing at least another portion of the data in the data stream at a standard definition (SD) rate.
 17. An apparatus for providing a data stream, comprising: means for receiving user information, including a token associated with a URI that is a location of the data stream on a server, for a request for the data stream from a client; means for determining a validity of the user information and the token; and if the user information and the token are valid, employing: means for negotiating an encryption key with the client; means for encrypting the data stream as it is streamed to the client, wherein the data stream is encrypted with the negotiated encryption key; and means for controlling by the apparatus over a network a rate of a flow of the encrypted data stream to the client to maintain a substantially full client buffer and for dynamically modifying at least one portion of the data within the data stream by changing a compression quality of the at least one portion based on a determined bandwidth.
 18. The apparatus of claim 17, wherein dynamically modifying at least one portion further comprises, employing a first compression for at first portion of the data based on the determined bandwidth to be above a first threshold, and employing at least a second compression for at least a second portion of the data based on the determined bandwidth to below a second threshold. 